package com.dobbyspringside.examples.showcase.demos.schedule;

import org.springframework.beans.factory.annotation.Autowired;

import java.util.concurrent.ScheduledExecutorService;

/**
 * Created by liguoqing on 2016/2/23.
 */
public class JdkTimerJob implements Runnable {

    @Autowired
    private UserCountScanner userCountScanner;

    private int initialDelay = 0;
    private int period = 0;
    private int shutdownTimeout = Integer.MAX_VALUE;

    private ScheduledExecutorService scheduledExecutorService ;

    @Override
    public void run() {
        userCountScanner.excuteByJdk();
    }


}
